package UnionPay.unionpay;

import com.unionpay.acp.sdk.SDKConfig;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * 初始化Bean时，加载配置文件
 */
@Component
public class UnionPayInitializer implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        SDKConfig.getConfig().loadPropertiesFromSrc();
    }

}
